package com.day0914;

import java.util.Arrays;

public class Text1 {
    public static void main(String[] args) {
        //数组常用方法
        int[] nums1 = {90,10,30,50,80};
        int[] nums2 = {10,20,30};
        Text2 text2 = new Text2();
        boolean res = text2.myEquals(nums1,nums2);//两个数组做对比
        System.out.println(res);
        text2.mySort(nums1);//将数组升序排列
        System.out.println(Arrays.toString(nums1));
        text2.myFill(nums1,8);//将数组所有值赋值成同值
        System.out.println(Arrays.toString(nums1));
        nums1 = Arrays.copyOf(nums1,nums1.length + 1);//数组扩容或删减
        System.out.println(Arrays.toString(nums1));
        System.out.println(text2.myBinArySearch(nums2,10));//升序数组找下标
    }
}
